<extend name="Base/common"/>
<block name="style">
    <link href="__CSS__/jxgl.css" type="text/css" rel="stylesheet">
</block>
<block name="header">
    <include file="Public/_nav"/>
</block>
<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-xs-2">



             <div class="common_block_border">                
                <div class="content ">
                <include file="Public/sidebar"  />
                </div>
            </div>
        </div>
        <!-- 左侧菜end -->

        <!-- 右侧内容开始 -->
        <div class="col-xs-10">
        <div class="common_block_border">
        <ul class="nav nav-tabs">
           <li ><a href="{:U('Lunwen/uploadLunwen')}">论文上传</a></li>
           <li class="active"><a href="{:U('Lunwen/viewLunwen')}">浏览论文</a></li>
           <li><a href="{:U('Xshj/index')}">学生获奖登记</a></li>
          <li><a href="{:U('Xshj/hjhz')}">学生获奖情况汇总</a></li>
         
        </ul>
           
    <!-- 查询表单start -->

     <div class="right_box">


     
               
                <legend><span style="color:#CC4444"> 论文上传 : </span>论文检索
                <a href="{:U('Export')}" class="btn btn-success">导出论文汇总</a>
                </legend>
               
                    <form method='post' id="form1" name="form1"  action="{:U('Lunwen/viewLunwen')}" class="form-horizontal form-condensed">
                       <div class="form-group">
                       <div class="col-md-11">
                           <div class="input-group">
                              <span class="input-group-addon">学科类别</span>                                           
                                <select name="subject" id="subject" class="form-control" >
                                <option >所有学科</option>
                                  <option <if condition="$subject eq '语文' "> selected </if> >语文</option>
                                  <option <if condition="$subject eq '数学' ">selected</if> >数学</option>
                                  <option <if condition="$subject eq '英语' ">selected</if> >英语</option>
                                  <option <if condition="$subject eq '科学' ">selected</if> >科学</option>
                                  <option <if condition="$subject eq '综合' ">selected</if> >综合</option>
                                  <option <if condition="$subject eq '其他' ">selected</if> >其他</option>  
                                </select>                                        
                                                               
                              <span class="input-group-addon fix-border fix-padding">作者</span>
                               <input type="text" class="form-control" name="teacher" value="{$teacher}" placeholder="输入作者姓名查询" >
                              <span class="input-group-addon fix-border fix-padding">年份</span>
                              <input class="form-control" placeholder="学年查询" type="text" name="year" value="{$year}" style="width:60px">
                              <span class="input-group-addon fix-border fix-padding">标题</span>
                              <input class="form-control" placeholder="标题查询" type="text" name="keywords" value="{$keywords}"  style="width:220px;">
                              <span class="input-group-btn">
                                <button class="btn btn-primary" type="submit">&nbsp;查询&nbsp;</button>
                              </span>
                            </div>
                        </div>
                       </div>

                  </form> 

                </div>
                <!--  查询表单end -->  
  
    <!-- 数据列表 -->
    <div class="right_box">
        <div class="table">
         <table class="table table-striped  table-bordered">
             <thead>
            <tr class="info">
                
                <th class="text-center">序号</th>                                     
                <th class="text-center">类别</th>
                <th class="text-center">教师</th>
                <th class="text-center">标题</th>
                <th class="text-center">上传日期</th>                
                <th class="text-center">操  作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="list">
                <volist name="list" id="vo">
                <tr>
                    
                    <td class="text-center">{$i} </td>
                    <td class="text-center">{$vo.subject}</td>
                    <td class="text-center">{$vo.teacher}</td>
                    <td>{$vo.title}</td>                   
                    <td class="text-center"><span><if condition="($vo.update_time eq 0)"> &nbsp <else/>
                  {$vo.update_time|date='Y-m-d',###}</if></span></td>                        
                    <td class="text-center">
                        <a href="{:U('Lunwen/editlunwen','id='.$vo['id'])}" >编辑</a> |
                        
                        <a href="{:U('Lunwen/deletelunwen?id='.$vo['id'])}" class="authorize">删除</a>
                        
                        </td>
                </tr>
                </volist>
                <else/>
                <td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
                </notempty>
            </tbody>
            </table>
    </div>
    <div class="right_box text-right"> 
      &nbsp; {:getPagination($totalPageCount,$r)}
    </div>
    </div>
        <!-- 右侧内容结束 -->  
      </div>   


</block>

